package org.spring.sample.server.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

	@Value("${server.port}")
	private String port;

	@GetMapping(value = "/index")
	public String index(@RequestParam String name) {
		return "hello:" + port + name;
	}
}
